package com.cmc.cloud.cmclink.doc.convert;

import com.cmc.cloud.cmclink.doc.entity.PartnerSpecialCargoEmailDO;
import com.cmc.cloud.cmclink.doc.vo.special.partneremailvo.PartnerSpecialCargoEmailCreateReqVO;
import com.cmc.cloud.cmclink.doc.vo.special.partneremailvo.PartnerSpecialCargoEmailRespVO;
import com.cmc.cloud.cmclink.doc.vo.special.partneremailvo.PartnerSpecialCargoEmailUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 合作方 Email 维护 Convert
 *
 * @author 集运管理员
 */
@Mapper
public interface PartnerSpecialCargoEmailConvert {

    PartnerSpecialCargoEmailConvert INSTANCE = Mappers.getMapper(PartnerSpecialCargoEmailConvert.class);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    PartnerSpecialCargoEmailDO convert(PartnerSpecialCargoEmailCreateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    PartnerSpecialCargoEmailDO convert(PartnerSpecialCargoEmailUpdateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    PartnerSpecialCargoEmailRespVO convert(PartnerSpecialCargoEmailDO bean);

    /**
     * 属性转换 convert
     *
     * @param list
     * @return
     */
    List<PartnerSpecialCargoEmailRespVO> convertList(List<PartnerSpecialCargoEmailDO> list);

}
